package com.Java.train.business.service;

import com.Java.train.common.response.CommonResp;
import com.Java.train.business.entity.TrainSeat;
import com.baomidou.mybatisplus.extension.service.IService;
import com.Java.train.common.response.PageResp;
import com.Java.train.business.entity.DTO.TrainSeatDTO;
import com.Java.train.business.req.TrainSeatQueryReq;

/**
* @author luomoxingchen
* @since 2024-09-22
*/
public interface TrainSeatService extends IService<TrainSeat> {

    /**
    * TrainSeat详情
    * @param
    * @return
    */
    PageResp<TrainSeatDTO> queryList(TrainSeatQueryReq trainSeatQueryReq);

    /**
    * TrainSeat保存和修改
    * @param trainSeat 根据需要进行传值
    * @return
    */
    CommonResp<Object> modify(TrainSeat trainSeat);

    /**
    * TrainSeat删除
    * @param ids
    * @return
    */
    CommonResp<Object> remove(String ids);

    CommonResp<Object> genSeat(String trainCode);
}


